package com.example.cloudpracticeplatform.service.impl;

import com.example.cloudpracticeplatform.entity.ExperimentContainer;
import com.example.cloudpracticeplatform.mapper.ExperimentContainersMapper;
import com.example.cloudpracticeplatform.service.ExperimentContainersService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class ExperimentContainersServiceImpl implements ExperimentContainersService {
    @Resource
    private ExperimentContainersMapper experimentContainersMapper;
    
    @Override
    public int insert(ExperimentContainer experimentContainer) {
        return experimentContainersMapper.insert(experimentContainer);
    }

    @Override
    public int update(ExperimentContainer experimentContainer) {
        return experimentContainersMapper.update(experimentContainer);
    }

    @Override
    public ExperimentContainer findByEnrollmentId(Integer enrollmentId) {
        return experimentContainersMapper.findByEnrollmentId(enrollmentId);
    }
}
